import CryptoJS from 'crypto-js';

const kSecretKey = "DjmBPUbhxmBFJH5V";

function encrypt(message) {
    return CryptoJS.AES.encrypt(message, kSecretKey).toString();
}

function decrypt(message) {
    return CryptoJS.AES.decrypt(message, kSecretKey).toString(CryptoJS.enc.Utf8);
}

export {encrypt, decrypt};